﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Tasks;

namespace wp7CattoFreeAppv2
{
    public partial class Login : PhoneApplicationPage
    {
        public Login()
        {
            InitializeComponent();
            SupportedOrientations = SupportedPageOrientation.PortraitOrLandscape;

        }

        #region "Events"
            private void btnLogin_Click(object sender, RoutedEventArgs e)
            {
                NavigationService.Navigate(new Uri("/MainPage.xaml", UriKind.Relative));
            }

            /// <summary> Open Web Page
        ///  Open Web Page
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
            private void hylbtnOpenCattoWeb_Click(object sender, RoutedEventArgs e)
            {
                WebBrowserTask wbt = new WebBrowserTask();
                wbt.URL = "http://www.ChrisCatto.com";
                wbt.Show();
            }

        #endregion

        //private void PasswordBox_PasswordChanged(object sender, RoutedEventArgs e)
        //{
        //    NavigationService.Navigate(new Uri("/Login.xaml", UriKind.Relative));
        //}

 
    }
}